Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gh 716 push notifications #730

Merged
merged 8 commits into from Nov 30, 2020
Merged

Gh 716 push notifications #730

merged 8 commits into from Nov 30, 2020

Conversation

sche
Copy link
Contributor

@sche sche commented Nov 25, 2020

No description provided.

@sche sche added this to the Sprint 17 "..." milestone Nov 25, 2020
@sche sche self-assigned this Nov 25, 2020
@codecov
Copy link

codecov bot commented Nov 25, 2020

Codecov Report

Merging #730 (72ff4e9) into main (4c71fd8) will increase coverage by 1.06%.
The diff coverage is 63.30%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #730      +/-   ##
==========================================
+ Coverage   28.78%   29.85%   +1.06%     
==========================================
  Files         324      328       +4     
  Lines        9262     9370     +108     
==========================================
+ Hits         2666     2797     +131     
+ Misses       6596     6573      -23     
Impacted Files Coverage Δ
...e Transaction Service/SignTransactionRequest.swift 0.00% <0.00%> (ø)
Multisig/Logic/Models/SafeTransactionSigner.swift 38.46% <0.00%> (+13.46%) ⬆️
...ingsViewController/AppSettingsViewController.swift 0.00% <0.00%> (ø)
...ingsViewController/ContractVersionStatusCell.swift 0.00% <0.00%> (ø)
...ngsViewController/SafeSettingsViewController.swift 0.00% <0.00%> (ø)
.../UI Library/ReusableCells/AddressDetailsCell.swift 0.00% <0.00%> (ø)
...I Library/ReusableViews/AddressWithTitleView.swift 0.00% <ø> (ø)
.../Owner Wallet Management/EnterSeedPhraseView.swift 0.00% <0.00%> (ø)
...allet Management/SelectOwnerAddressViewModel.swift 0.00% <0.00%> (ø)
Multisig/UI/App/RemoteNotificationHandler.swift 34.83% <25.00%> (+3.05%) ⬆️
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 72e2baf...72ff4e9. Read the comment docs.

Copy link
Collaborator

@DmitryBespalov DmitryBespalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have several questions that need resolution

]
.joined()

if let signature = try? Signer.sign(string).value {
guard timestamp != nil else {
throw "'timestamp' parameter is required if signing key exists"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe preconditionFailure() is better because this would be a programmer's error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

self.address = address.checksummed
self.deviceID = deviceID.uuidString.lowercased()
self.deviceID = deviceID
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the lowercased() got lost - either when this init is called or in here it should be present

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked - it worked fine. But I will make it lowercased()

@@ -17,6 +17,16 @@ struct UserDefault<T> {
}
}

@propertyWrapper
struct UserDefaultWithDefault<T> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if we need this anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

timestamp: String?) throws {

guard UUID(uuidString: deviceID) != nil else {
throw "'deviceID' should be UUID string"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would make it preconditionFailure() or just precondition instead of guard because this is developer error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Collaborator

@DmitryBespalov DmitryBespalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! 👏

@sche sche merged commit 3a2752e into main Nov 30, 2020
@sche sche deleted the gh-716-push-notifications branch November 30, 2020 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants